package base;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;

import io.rong.imkit.RongIM;

/**
 * Created by debby on 2018/3/27.
 * 描述: Base Application
 */

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        RongIM.init(this);
        Fresco.initialize(this);
        //BugLy热更新
        Bugly.init(this, "b609263e3b", false);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        // you must install multiDex whatever tinker is installed!
        MultiDex.install(this);
        // 安装tinker
        Beta.installTinker();
    }
}
